package com.ruoyi.caigou.domain.pojo;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购询价商品对象 finer_buy_ask_goods
 *
 * @author ruoyi
 * @date 2024-10-31
 */
public class BuyAskGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 采购询价编码 */
    @Excel(name = "采购询价编码")
    private String buyAskCode;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer goodsId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer goodsNumber;

    /** 预留字段 */
    private Integer type;

    public BuyAskGoods() {
    }

    public BuyAskGoods(String buyAskCode, Integer goodsId, Integer goodsNumber) {
        this.buyAskCode = buyAskCode;
        this.goodsId = goodsId;
        this.goodsNumber = goodsNumber;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setBuyAskCode(String buyAskCode)
    {
        this.buyAskCode = buyAskCode;
    }

    public String getBuyAskCode()
    {
        return buyAskCode;
    }
    public void setGoodsId(Integer goodsId)
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId()
    {
        return goodsId;
    }
    public void setGoodsNumber(Integer goodsNumber)
    {
        this.goodsNumber = goodsNumber;
    }

    public Integer getGoodsNumber()
    {
        return goodsNumber;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("buyAskCode", getBuyAskCode())
                .append("goodsId", getGoodsId())
                .append("goodsNumber", getGoodsNumber())
                .append("type", getType())
                .toString();
    }
}
